package cn.math.appmath.biz.impl;

import cn.math.appmath.biz.UserBiz;
import cn.math.appmath.dao.UserDao;
import cn.math.appmath.entity.User;

public class UserBizImpl implements UserBiz {
	public UserDao userDao;
	
	public int updateUser(User user){
		return userDao.updateUser(user);
	}
	
	public boolean login(User user){
		if(userDao.findByExample(user).size() == 0){
			return false;
		}
		return true;
	}
	
	public User findUser(){
		return userDao.findUser();
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
}
